package com.dragon.modules.yuegou.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "sgy.isvalipay")
public class IsvAlipayProperties {

    /**
     * 支付宝网关<br>
     * 使用沙箱时请修改成：https://openapi.alipaydev.com/gateway.do
     */
    private String serverUrl = "https://openapi.alipay.com/gateway.do";

    /**
     * 应用ID<br>
     * 合作身份者ID，以2088开头由16位纯数字组成的字符串
     */
    private String appId;

    private String serviceProviderId = "2088331430099501";

    /**
     * 商户的私钥,使用支付宝自带的openssl工具生成。
     */
    private String privateKey;

    /**
     * 数据格式，仅支持JSON
     */
    private String format = "json";

    /**
     * 字符编码格式 目前支持 gbk 或 utf-8
     */
    private String charset = "UTF-8";

    /**
     * 支付宝公钥
     */
    private String alipayPublicKey;

    /**
     * 签名方式 不需修改
     */
    private String signType = "RSA2";

    private String encryptKey;
    private String encryptType;

    /**
     * 支付宝服务器异步通知地址
     */
    private String notifyUrl;

    /**
     * 支付宝页面跳转同步通知页面
     */
    private String returnUrl;
    
	/**
	 * 会员卡回调地址
	 */
	private String mcardNotifyUrl;
	

    public String getServerUrl() {
        return serverUrl;
    }

    public void setServerUrl(String serverUrl) {
        this.serverUrl = serverUrl;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getServiceProviderId() {
        return serviceProviderId;
    }

    public void setServiceProviderId(String serviceProviderId) {
        this.serviceProviderId = serviceProviderId;
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public String getCharset() {
        return charset;
    }

    public void setCharset(String charset) {
        this.charset = charset;
    }

    public String getAlipayPublicKey() {
        return alipayPublicKey;
    }

    public void setAlipayPublicKey(String alipayPublicKey) {
        this.alipayPublicKey = alipayPublicKey;
    }

    public String getSignType() {
        return signType;
    }

    public void setSignType(String signType) {
        this.signType = signType;
    }

    public String getEncryptKey() {
        return encryptKey;
    }

    public void setEncryptKey(String encryptKey) {
        this.encryptKey = encryptKey;
    }

    public String getEncryptType() {
        return encryptType;
    }

    public void setEncryptType(String encryptType) {
        this.encryptType = encryptType;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }

    public String getReturnUrl() {
        return returnUrl;
    }

    public void setReturnUrl(String returnUrl) {
        this.returnUrl = returnUrl;
    }

	public String getMcardNotifyUrl() {
		return mcardNotifyUrl;
	}

	public void setMcardNotifyUrl(String mcardNotifyUrl) {
		this.mcardNotifyUrl = mcardNotifyUrl;
	}
    
    
    
}
